/*
 * CommServer.java
 *
 * Distributed Systems: Project 2
 *
 */

package unimelb.distSystems.project2;

import org.omg.CosNaming.*;
import org.omg.CORBA.*;


public class GameClient {


    public GameClient() {
        try{
            // create and initialize the ORB
            ORB orb = ORB.init(new String[0], null);

            // get the root naming context
            org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");

            // Use NamingContextExt instead of NamingContext, part of the Interoperable naming Service.
            NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);

            // resolve the Object Reference in Naming
            //HelloWorldService helloWorld = HelloWorldServiceHelper.narrow(ncRef.resolve_str("HelloWorldService"));

            //System.out.println(helloWorld.sayHello(”James"));
        }catch(Exception e){}
    }
}

